package com.hh.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hh.erp.entity.SysRole;
import com.hh.erp.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author zhb
 * @since 2024-03-31
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    public List<SysRole> getRolePermission(@Param("user") SysUser user);

    List<SysRole> selectRoleByUserId(@Param("userId") Long userId);
}
